package com.qf.xml;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
//相当于 <context:component-scan base-package="com.qf.service,com.qf.config,com.qf.aop"/>
@ComponentScan({"com.qf.service","com.qf.config","com.qf.aop"})

//相当于 <tx:annotation-driven transaction-manager="ptm"/>
@EnableTransactionManagement //内部找平台事务管理器时，是通过类型找

//相当于 <aop:aspectj-autoproxy />
@EnableAspectJAutoProxy
public class SpringConfig {
}
